package com.base.pig.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;

/**
 * @ProjectName intelligent-city
 * @Package com.pig4cloud.pig.lab.entity
 * @ClassName ScAnnotation
 * @Description 标注表
 * @Company lab
 * @Author zgq
 * @Date 2020/7/13 18:11
 * @UpdateUser
 * @UpdateDate
 * @UpdateRemark
 * @Version 1.0.0
 */
@Data
@TableName("sc_annotation")
public class ScAnnotation {

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * x坐标
     */
    private String xzb;
    /**
     * y坐标
     */
    private String yzb;
    /**
     * h坐标
     */
    private String hzb;
    /**
     * 标注类型(ScAnnotationType表)
     */
    private int type;
    /**
     * 状态(0=隐藏,1=显示)
     */
    private int state;
    /**
     * 标识码
     */
    @TableField(value = "us_id")
    private String usId;
    /**
     * 标注数据(因涉及的表较多,数据数量还不确定,用Object接收合适)
     */
    private String data;

    /**
     * line结构(起点终点xyh)
     */
    private String sx;
    private String sy;
    private String sh;
    private String ex;
    private String ey;
    private String eh;
    /**
     * 状态枚举
     */
    @Getter
    @AllArgsConstructor
    public enum State {
        HIDE(0, "隐藏"),
        SHOW(1, "显示"),
        ;
        private int code;
        private String msg;
    }
}
